<?php
// +----------------------------------------------------------------------
// | 飞牛框架基础版
// +----------------------------------------------------------------------
// | Copyright (c) 2019-2021 中犇科技 All rights reserved.
// +----------------------------------------------------------------------

/**
 * 模块信息
 */
return [
    'name' => 'customer',
    'title' => '客服',
    'identifier' => 'customer.zbphp.module',
    'icon' => '',
    'description' => '客服系统，支持单店铺，多店铺',
    'author' => '晓风',
    'author_url' => 'javascript:;',
    'version' => '1.0.0',
    'need_module' => [
        [
            'admin',
            'admin.zbphp.module',
            '1.0.0',
        ],
        [
            'user',
            'user.zbphp.module',
            '1.0.0',
        ],
    ],
    'tables' => [
        'customer',
        'customer_shop',
        'customer_chat',
        'customer_session',
        'customer_reply',
    ],
    'database_prefix' => 'lb_',
    'config' => [
         [
            'type' => 'text',
            'name' => 'socket_url',
            'title' => 'socket连接地址',
            'tips' => '一般是http://ip:端口号',          
        ],
        [
            'type' => 'text',
            'name' => 'wss_socket_url',
            'title' => 'socket的wss连接地址',
            'tips' => '可通过反向代理实现SSL',          
        ],
//        [
//            'type' => 'text',
//            'name' => 'socket_token',
//            'title' => '群发token',
//            'tips' => '请于config.js配置一致',          
//        ],
    ],
    'action' => [],
    'access' => [],
];
